package com.love.marriage.userRechargeRecordInfo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.love.marriage.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * description:  充值记录表类
 * author:       mybatisPlus
 * createDate: 2024-10-16 23:06:22
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_recharge_record_info_t")
@Schema(description = "充值记录表")
public class UserRechargeRecordInfo extends BaseEntity<UserRechargeRecordInfo>{

    @Schema(description = "用户ID，关联到用户表", type = "Long", implementation = Long.class)
    @TableField("user_id")
    private Long userId;

    @Schema(description = "充值金额", type = "BigDecimal", implementation = BigDecimal.class)
    @TableField("amount")
    private BigDecimal amount;

    @Schema(description = "充值状态（0: 进行中, 1: 成功, 2: 失败）", type = "Boolean", implementation = Boolean.class)
    @TableField("`status`")
    private Boolean status;

    @Schema(description = "操作", type = "String", implementation = String.class)
    @TableField("`type`")
    private String type;

    @Schema(description = "赠送金额", type = "BigDecimal", implementation = BigDecimal.class)
    @TableField("bonus_amount")
    private BigDecimal bonusAmount;
}
